namespace Config
{
    public abstract class Singleton<T> where T : new()
    {
        private static T _inst;

        public static T inst
        {
            get
            {
                if (_inst == null)
                    _inst = new T();
                return _inst;
            }
        }
    }
}